import { getRequest, postRequest } from '@/lib/request';
export const userApi = {
	loginByApp: (param) => {
	  return postRequest('', param)
	},
	getUserInfo:()=>{
		return getRequest('/user',false)
	},
	sendCode: (phone) => {
		return postRequest('/send_code', phone)
	},
	userLogin: (param) => {
		return postRequest('/login', param);
	},
	addUserInfo: (param) => {
		return postRequest('/user/update', param);
	},
	saveOpenId: (param) => {
		return postRequest('/save/openid', param);
	},
	wxLogin: (param) => {
		return postRequest('/wx_login', param);
	},
	// 上线
	peopleOnline: () => {
		return postRequest('/online');
	},
	// 反馈、举报、联系我们
	getFeedback:(type)=>{
		return getRequest(	`/feedback?type=${type}`,false)
	},
	// 钱包列表
	getWallet:(data)=>{
		return getRequest(	`/wallet?page=${data.page}&start_time=${data.start_time}&end_time=${data.end_time}`,false)
	},

};

